\subsubsection{Model layer}
\begin{lstlisting}[caption=Attributter for Offer]
//instance variables
private String idOffer;
private double calculatedPrice;
private String dateStart;
private String dateEnd;
private String acceptDeadline;
private double discount;
private String statusOffer;
private String sentDate;
private double pricePerHour;

//association to Order
private Order order;

//association to Customer
private Customer customer;

//association to PartialAssignment
private ArrayList<PartialAssignment> partialAssignmentList;
\end{lstlisting}

\begin{lstlisting}[caption=Attributter for Order]
private String idOrder;
private String createdDate;
private String paymentDeadline;
private String statusOrder;

//association to Offer
private Offer offer;
\end{lstlisting}

\begin{lstlisting}[caption=Attributter og constructors for Customer]
//instance variables
private String idCustomer;
private String cvrNo;
private String accountNo;
private ArrayList<Customer> customerList;
private ArrayList<Order> purchaseHistory;
		
//constructors		
public Customer() {			
}

public Customer(String idCustomer){
	this.idCustomer = idCustomer;
}
		
public Customer(String name,String address,String zipCode,String city,String phoneNo,String 			email,String idCustomer,String cvrNo,String accountNo)	{
	super(name, address, zipCode, city, phoneNo, email);
	this.idCustomer = idCustomer;
	this.cvrNo = cvrNo;
	this.accountNo = accountNo;
	/**
	* creates ArrayList containing objects of type Customer
	*/
	customerList = new ArrayList<Customer>();
	/**
	* creates ArrayList containing objects of type Order
	*/
	purchaseHistory = new ArrayList<Order>();
}}
\end{lstlisting}

\subsubsection{DB layer}
\lstinputlisting[caption=DBOffer]{includes/DBOffer_nyeste.java}

\lstinputlisting[caption=DBOrder]{includes/DBOrder_nyeste.java}

\subsubsection{Control layer}
\lstinputlisting[caption=CtrOffer]{includes/CtrOffer.java}

\lstinputlisting[caption=CtrOrder]{includes/CtrOrder.java}